export * from './config'
export { map } from './map'
import { gameRow, gameCol } from './config'
import { initMap, map } from './map'

initMap()

const box = {
  shape: [
    [1, 1],
    [1, 1],
  ],
}

// 添加 box -> map

const row = box.shape.length
const col = box.shape[0].length

for (let i = 0; i < row; i++) {
  for (let j = 0; j < col; j++) {
    map[i][j] = box.shape[i][j]
  }
}